package com.shigen.file.res;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 表单返回体封装
 *
 * @author shigenfu
 * @date 2022/6/4 10:50 下午
 */
public class ProjectResponse {

  /**
   * 表单分页查询
   */
  @ApiModel(value = "表单分页查询")
  @Data
  @Accessors(chain = true)
  public static class PageResponse {

    @ApiModelProperty("自增的ID")
    @TableId(value = "auto_id", type = IdType.AUTO)
    private Integer autoId;

    @ApiModelProperty("问卷的ID")
    private String projId;

    @ApiModelProperty("问卷的名字")
    private String projName;

    @ApiModelProperty("开始时间")
    private String beginTime;

    @ApiModelProperty("结束时间")
    private String endTime;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("描述")
    @TableField(value = "`describe`")
    private String describe;

    @ApiModelProperty("每人只能填写一次 0----false 1----true")
    private String writeOnce;
  }

}
